#!/bin/bash
rm -rf build
rm -rf dist
python -u -OO setup.py py2app
# Quick fix for some library name mismatching. This has to change as we move to higher wxPython versions
install_name_tool -change /usr/local/lib/wxPython-unicode-2.6.3.3/lib/libwx_macud-2.6.0.dylib @executable_path/../Frameworks/libwx_macud-2.6.0.dylib "dist/Etelos Development Environment.app/Contents/Frameworks/libwx_macud_gizmos-2.6.0.dylib"
install_name_tool -change /usr/local/lib/wxPython-unicode-2.6.3.3/lib/libwx_macud-2.6.0.dylib @executable_path/../Frameworks/libwx_macud-2.6.0.dylib "dist/Etelos Development Environment.app/Contents/Frameworks/libwx_macud_stc-2.6.0.dylib"